﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace DynamicToSql
{
    public static class SessionFactory
    {
        public static ISession Create(IDbConnection connection)
        {
            return new Session(connection, null, null, null);
        }

        public static ISession Create(IDbConnection connection, string parameterPrefix)
        {
            return new Session(connection, null, null, parameterPrefix);
        }

        public static ISession Create(IDbConnection connection, ILogger logger)
        {
            return new Session(connection, logger, null, null);
        }

        public static ISession Create(IDbConnection connection, INamingConverter namingConverter)
        {
            return new Session(connection, null, namingConverter, null);
        }

        public static ISession Create(IDbConnection connection, ILogger logger, INamingConverter namingConverter, string parameterPrefix)
        {
            return new Session(connection, logger, namingConverter, parameterPrefix);
        }

    }
}
